FROM zhu-ying-docker.pkg.coding.net/kszy/public/micromamba:1.5.8-bookworm-slim
# 设置用户为root
USER root
# python 编码
ENV PYTHONIOENCODING=utf-8
# 设置build中conda激活
ARG MAMBA_DOCKERFILE_ACTIVATE=1
# 设置conda源
COPY .mambarc /root/.mambarc
# 安装Python conda环境
RUN micromamba install -y -c bioconda -c conda-forge -n base python=3.10 delly
# 清理Python 缓存环境
RUN micromamba clean -a -y
# 设置debian源
RUN sed -i 's/deb.debian.org/mirrors.cloud.tencent.com/g' /etc/apt/sources.list.d/debian.sources
# 安装软件
RUN pip config set global.index-url https://pypi-1703563938750:504b6dbe8de1f29495ad7efc6012a42a08e9cb2b@zhu-ying-pypi.pkg.coding.net/kszy/pypi/simple
RUN pip install pysam==0.* pandas==2.* matplotlib==3.* openanno_cnv==0.* pydantic==2.* pyarmor==8.*
ADD clinsv/ /data/clinsv/
RUN cd /data && pyarmor gen -i -r -O dist clinsv && cp -r clinsv/data dist/clinsv
ADD setup.py setup.cfg /data/dist/
RUN cd /data/dist && pip3 install . && rm -rf /data

